<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="test.js" type="module"></script>
</head>

<body>
<script type="module">
    import * as obj from "./test.js";
    const a=new obj.C('tong');
    console.log(a.name);
</script>
</body>

</html>